import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home/Home'
import detail from '@/pages/detail/Detail'
import myvideo from '@/pages/video/Video'
import search from '@/pages/search/Search'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: home
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: detail
    },
    {
      path: '/video',
      name: 'Video',
      component: myvideo
    },
    {
      path: '/search',
      name: 'Search',
      component: search
    }
  ]
})
